$(function () {
    $("button").click(function () {
        var username = $("#exampleInputEmail2").val()
        var password = $("#exampleInputPassword2").val()
        var birthDay = $("#birthDay").val()
        var sex = $("input[name = 'sex']:checked").val()
        var obj = {
            username,
            password,
            sex,
            birthDay

        }
        console.log(obj)
        $.post("/lession01/regist",  obj , function (data) {
            pxmu.success("注册成功")
            setTimeout(function () {
                location.href = "../index.html"
            },500)
        })
    })
})